package ciicos.check.model.checkplan;

import ciicos.annotation.JnpfField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigInteger;

/**
 * 版本： V3.2.0
 * 版权:
 * 作者： 产研项目租
 * 日期： 2023-08-16
 */
@Data
public class CheckPlanTimeModel {

    /**
     * 时间间隔
     **/
    @JnpfField(label = "时间间隔",
            jnpfKey = "numInput", min = 1, relationTable = "check_plan_time", tableName = "check_plan", vModel = "timespaced")
    @JsonProperty("timespaced")
    private BigInteger timespaced;

    /**
     * 时长单位
     **/
    @JnpfField(label = "时长单位",
            jnpfKey = "select", relationTable = "check_plan_time", tableName = "check_plan", dataLabel = "fullName", dataValue = "enCode", dictionaryType = "509339643641104965", vModel = "timetype")
    @JsonProperty("timetype")
    private String timetype;
    /**
     * 开始时间
     **/
    @JnpfField(label = "开始时间 ",
            jnpfKey = "time", relationTable = "check_plan_time", tableName = "check_plan", format = "HH:mm", vModel = "timestart")
    @JsonProperty("timestart")
    private String timestart;
    /**
     * 结束时间
     **/
    @JnpfField(label = "结束时间",
            jnpfKey = "time", relationTable = "check_plan_time", tableName = "check_plan", format = "HH:mm", vModel = "timeend")
    @JsonProperty("timeend")
    private String timeend;
    /**
     * 开始执行日期
     **/
    @JnpfField(label = "开始执行日期",
            jnpfKey = "date", relationTable = "check_plan_time", tableName = "check_plan", format = "yyyy-MM-dd", vModel = "datestart")
    @JsonProperty("datestart")
    private String datestart;
    /**
     * 结束执行时间
     **/
    @JnpfField(label = "结束执行时间",
            jnpfKey = "date", relationTable = "check_plan_time", tableName = "check_plan", format = "yyyy-MM-dd", vModel = "dateend")
    @JsonProperty("dateend")
    private String dateend;

}
